<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class LoggerLevel</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class LoggerLevel</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the minimum set of levels recognized by the system, that is <em>OFF</em>, <em>FATAL</em>, <em>ERROR</em>, <em>WARN</em>, <em>INFO&lt;/i, &lt;i&gt;DEBUG</em> and <em>ALL</em>.</p>
<p class="description"><p>The <em>LoggerLevel</em> class may be subclassed to define a larger  level set.</p><p></p></p>
	<ul class="tags">
				<li><span class="field">author:</span> VxR &lt;<a href="mailto:vxr@vxr.it">vxr@vxr.it</a>&gt;</li>
				<li><span class="field">version:</span> $Revision: 1.11 $</li>
				<li><span class="field">since:</span> 0.5</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_log---LoggerLevel.php.html">/log/LoggerLevel.php</a> (line <span class="field">25</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																												<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelAll" title="details" class="method-name">&amp;getLevelAll</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelDebug" title="details" class="method-name">&amp;getLevelDebug</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelError" title="details" class="method-name">&amp;getLevelError</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelFatal" title="details" class="method-name">&amp;getLevelFatal</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelInfo" title="details" class="method-name">&amp;getLevelInfo</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelOff" title="details" class="method-name">&amp;getLevelOff</a>
										()
									</div>
																<div class="method-definition">
					static 						<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
										<a href="#getLevelWarn" title="details" class="method-name">&amp;getLevelWarn</a>
										()
									</div>
																																								<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#toLevel" title="details" class="method-name">&amp;toLevel</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$arg</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$defaultLevel</span> = <span class="var-default">null</span>], <span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>&nbsp;<span class="var-name">$default</span>)
									</div>
																
												<div class="method-definition">
											<span class="method-result">LoggerLevel</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$level</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$levelStr</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$syslogEquivalent</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#equals" title="details" class="method-name">equals</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$o</span>)
									</div>
																																																																								<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#getSyslogEquivalent" title="details" class="method-name">getSyslogEquivalent</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#isGreaterOrEqual" title="details" class="method-name">isGreaterOrEqual</a>
											(<span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>&nbsp;<span class="var-name">$r</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#toInt" title="details" class="method-name">toInt</a>
										()
									</div>
																								<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#toString" title="details" class="method-name">toString</a>
										()
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetLevelAll" id="getLevelAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelAll</span> (line <span class="line-number">148</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an All Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelAll
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelDebug" id="getLevelDebug"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelDebug</span> (line <span class="line-number">136</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a Debug Level</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelDebug
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelError" id="getLevelError"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelError</span> (line <span class="line-number">100</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an Error Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelError
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelFatal" id="getLevelFatal"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelFatal</span> (line <span class="line-number">88</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a Fatal Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelFatal
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelInfo" id="getLevelInfo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelInfo</span> (line <span class="line-number">124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an Info Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelInfo
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelOff" id="getLevelOff"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelOff</span> (line <span class="line-number">76</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an Off Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelOff
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLevelWarn" id="getLevelWarn"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method getLevelWarn</span> (line <span class="line-number">112</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a Warn Level</p>
	
	<div class="method-signature">
	    static
		<span class="method-result"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
		<span class="method-name">
			&amp;getLevelWarn
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtoLevel" id="toLevel"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method toLevel</span> (line <span class="line-number">208</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Convert the string passed as argument to a level. If the  conversion fails, then this method returns a DEBUG Level.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			&amp;toLevel
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$arg</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$defaultLevel</span> = <span class="var-default">null</span>], <span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>&nbsp;<span class="var-name">$default</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$arg</span>			</li>
					<li>
				<span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
				<span class="var-name">$default</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$defaultLevel</span>			</li>
				</ul>
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">49</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor</p>
	
	<div class="method-signature">
		<span class="method-result">LoggerLevel</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$level</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$levelStr</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$syslogEquivalent</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$level</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$levelStr</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$syslogEquivalent</span>			</li>
				</ul>
		
			
	</div>
<a name="methodequals" id="equals"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">equals</span> (line <span class="line-number">62</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Two priorities are equal if their level fields are equal.</p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			equals
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$o</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetSyslogEquivalent" id="getSyslogEquivalent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getSyslogEquivalent</span> (line <span class="line-number">160</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return the syslog equivalent of this priority as an integer.</p>
	<ul class="tags">
				<li><span class="field">final:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getSyslogEquivalent
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodisGreaterOrEqual" id="isGreaterOrEqual"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isGreaterOrEqual</span> (line <span class="line-number">176</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns <em>true</em> if this level has a higher or equal level than the level passed as argument, <em>false</em> otherwise.</p>
<p class="description"><p>You should think twice before overriding the default  implementation of <em>isGreaterOrEqual</em> method.</p></p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			isGreaterOrEqual
		</span>
					(<span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>&nbsp;<span class="var-name">$r</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../log/LoggerLevel.html">LoggerLevel</a></span>
				<span class="var-name">$r</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtoInt" id="toInt"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">toInt</span> (line <span class="line-number">195</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the integer representation of this level.</p>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			toInt
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtoString" id="toString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">toString</span> (line <span class="line-number">186</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the string representation of this priority.</p>
	<ul class="tags">
				<li><span class="field">final:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			toString
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 10 Feb 2008 15:16:17 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>